package com.acme.bankapp.service.listeners;

import java.io.Serializable;

import com.acme.bankapp.domain.Client;

/**
 * Provides handler method for add client to the Bank action.
 */
public interface ClientRegistrationListener extends Serializable {
	
	/**
	 * Handles add client to the Bank actions.
	 * @param client that was added.
	 */
	void onClientAdded(Client client);

	/**
	 * Prints specified message in case of trouble.
	 * @param message error message
	 */
	void onClientNotAdded(String message);
}
